import request from '@/utils/request'
import { commonBaseUrl } from '@/utils'
const baseUrl = commonBaseUrl('D') || 'material/'

//查询是否进行跨项目调整发起
export function checkIsNeedAdjustPrjFlow(data) {
    return request({
        url: `${baseUrl}/api/flows/adjustPrjFlow/checkIsNeedAdjustPrjFlow`,
        method: 'post',
        data
    })
}

//查询页面数据
export const queryAdjustPrjFlowInfo = (data) => {
    return request({
        url: `${baseUrl}api/flows/adjustPrjFlow/queryAdjustPrjFlowInfo?bizSeq=` + data,
        method: 'post',
    })
}

//发起流程下一步接口
export const startAdjustPrjFlow = (data) => {
    return request({
        url: `${baseUrl}api/flows/adjustPrjFlow/startAdjustPrjFlow`,
        method: 'post',
        data
    })
}

//审核流程下一步回退撤销
export const doNextAdjustPrjFLow = (data) => {
    return request({
        url: `${baseUrl}api/flows/adjustPrjFlow/doNextAdjustPrjFlow`,
        method: 'post',
        data
    })
}